import request from "@/utils/request";
//获取评论
export const getComment = params => request({
  url: '/v1_0/comments',
  method: 'GET',
  params
})
//对评论点赞
export const addLikeComment = target => request({
  url: '/v1_0/comment/likings',
  method: 'POST',
  data: {
    target
  }
})
//取消对评论点赞
export const delLIkeComment = target => request({
  url: `/v1_0/comment/likings/${target}`,
  method: 'DELETE',
})
//评论文章
export const addComment = data => request({
  url: '/v1_0/comments',
  method: "POST",
  data
})